//获取小程序实例
const app=getApp()
console.log(app,"11111")
Page({
  //页面加载
  onLoad() {
    // console.log("-----onLoad-----")
    this.setData({
      username:app.globalData.username
    })
  },
  //页面显示
  onShow() {
    console.log("-----onShow-----")
  },
  //渲染完成
  onReady() {
    console.log("-----onReady-----")
  },
  onHide() {
    console.log("-----onHide-----")
  },
  onReachBottom() {
    console.log("----onReachBottom-----")
  },
  onPullDownRefresh() {
    console.log("----onPullDownRefresh-----")
  },
  onShareAppMessage(){

  },
  onShareTimeline(){}
})